package ooexercise03;
/*
public class Dog extends Animal{
    Dog(String name,int age,String colour){
        super(name,age,colour);
    }
    void eat(){
        System.out.println(colour+"色的"+age+"岁小狗"+name+"在啃骨头");
    }

    void lookHome(){
        System.out.println(colour+"色的"+age+"岁小狗"+name+"在看家");
    }

    public void swim(){
        System.out.println(colour+"色的"+age+"岁小狗"+name+"在游泳");
    }
}

 */

public class Dog extends Animal{
    Dog(String name,int age,String colour){
        super(name,age,colour);
    }

    void eat(){
        System.out.println(colour+"色的"+age+"岁小狗"+name+"在啃骨头");
    }
    void lookHome(){
        System.out.println(colour+"色的"+age+"岁小狗"+name+"在看家");
    }
    public void swim(){
        System.out.println(colour+"色的"+age+"岁小狗"+name+"在游泳");
    }
}